package cn.lefull.controller;

import cn.lefull.HelloSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @auther: qijiang
 * @date: 2018/12/21 15:39
 */
@RestController
public class TestController {

    @Autowired
    private HelloSender helloSender;
    @GetMapping(value = "/test1")
    public String test1(){
        helloSender.send1();
        return "true1";
    }
    @GetMapping(value = "/test2")
    public String test2(){
        helloSender.send2();
        return "true2";
    }
}
